package com.example.studentproj.service;


import com.example.studentproj.model.Student;
import org.springframework.data.domain.Page;
import java.util.List;

public interface StudentService {

    List<Student> getAllStudents();

    //储存
    void saveStudent(Student student);

    //通过名字来查询
    List<Student> findByNameContaining(String name);

    //通过班级来查询
    List<Student> findByClassName(String name);


    Student getStudentByid(Long id);

    void deleteStudentByid(Long id);


    Page<Student> findPaginated(int pageNo, int pageSize, String sortField, String sortDirection);



}
